package com.hualan.mapper;

import com.hualan.pojo.HotCourse;
import com.hualan.pojo.Teachers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TeachersMapper {
    @Select("select * from teachers")
    List<Teachers> teacherList();

    @Select("select * from teachers where id = #{id}")
    Teachers findById(Integer id);

    @Select("select * from courses where tid = #{tid}")
    List<HotCourse> courseList(Integer tid);
}
